package com.aaa.service;

import com.aaa.entity.Goods;
import com.aaa.util.BusinessException;

import java.util.List;
import java.util.Map;

public interface GoodsService {

    int addGoods(Goods goods);

    int updateGoods(Goods goods);

    int changeStatus(Goods goods);

    List<Goods> maxGoodsId();

    Map<String,Object> getConsumerGoodList(Integer pageNumber, Integer pageSize, String searchId, String searchName)throws Exception;


    int consumerGoods(Integer goodsId, Integer code) throws  Exception;
	
	/**
     * 获取商品销售统计数据
     * @return
     */
    public List<Map<String, Object>> getOrderForGoodsSensus();


    /**
     * 获取总的商品记录数
     * @param searchGoodsId
     * @param searchGoodsName
     * @return
     */
    int getConsumerGoodsInfoCount(String searchGoodsId, String searchGoodsName);


    /**
     * 商品销售里的商品列表
     * @param pageNumber
     * @param pageSize
     * @param searchId
     * @param searchName
     * @return
     * @throws Exception
     */
    Map<String,Object> consumerGoodList(Integer pageNumber, Integer pageSize, String searchId, String searchName) throws BusinessException;
}